﻿<odc:RibbonWindow x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey"
    Title="Document.Editor" Icon="Document.Editor.ico" WindowStartupLocation="Manual" HorizontalContentAlignment="Left">
    <DockPanel RenderOptions.BitmapScalingMode="HighQuality">
        <odc:RibbonBar odc:RibbonBar.MaxSize="Medium" x:Name="MainBar" DockPanel.Dock="Top">
            <odc:RibbonBar.ApplicationMenu>
                <odc:RibbonApplicationMenu ToolTip="Document" MenuButtonImage="Document.Editor.ico" Name="FileMenuItem" TabIndex="0">
                    <odc:RibbonApplicationMenu.RecentItemsList>
                        <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="ResentFilesMenu" />
                    </odc:RibbonApplicationMenu.RecentItemsList>
                    <Separator/>
                    <odc:RibbonMenuItem Name="NewMenuItem" Header="New" ToolTip="New Document"  Image="Images/Document/new.png" />
                    <odc:RibbonMenuItem Name="OpenMenuItem" Header="Open" ToolTip="Open Document(s)" Image="Images/Document/open.png" />
                    <Separator/>
                    <odc:RibbonMenuItem Name="CloseMenuItem" Header="Close" ToolTip="Close Document" Image="Images/Document/close.png" />
                    <odc:RibbonMenuItem Name="CloseAllMenuItem" Header="Close All" ToolTip="Close All Documents" Image="Images/Document/closeall.png" />
                    <Separator/>
                    <odc:RibbonMenuItem Name="SaveMenuItem" Header="Save" ToolTip="Save Document" Image="Images/Document/save.png" />
                    <odc:RibbonMenuItem Name="SaveAsMenuItem" Header="Save As" ToolTip="Save Document As" />
                    <odc:RibbonMenuItem Name="SaveAllMenuItem" Header="Save All" ToolTip="Save All Documents" Image="Images/Document/saveall.png"  />
                    <Separator/>
                    <odc:RibbonMenuItem Visibility="Collapsed" Name="ImportMenuItem" Header="Import" ToolTip="Import" />
                    <odc:RibbonMenuItem Name="ExportMenuItem" Header="Export" ToolTip="Export" Image="Images/Document/export.png">
                        <odc:RibbonMenuItem Name="ExportArciveMenuItem" Header="Export As Arcive(.zip)" Image="Images/Document/arcive.png" />
                        <odc:RibbonMenuItem Visibility="Collapsed" Name="ExportSoundMenuItem" Header="Export As Sound(.wav)" Image="Images/Tools/texttospeech.png" />
                    </odc:RibbonMenuItem>
                    <Separator/>
                    <odc:RibbonMenuItem Name="PrintMenuItem" Header="Print" ToolTip="Print Document" Image="Images/Document/print.png" />
                    <Separator/>
                    <odc:RibbonMenuItem Name="ExitMenuItem" Header="Exit" ToolTip="Close Document.Editor" />
                </odc:RibbonApplicationMenu>
            </odc:RibbonBar.ApplicationMenu>
            <odc:RibbonBar.QAToolBar>
                <odc:RibbonQAToolBar>
                    <odc:RibbonButton Name="NewButton" ToolTip="New Document" SmallImage="Images/Document/new.png" TabIndex="1" />
                    <odc:RibbonButton Name="OpenButton" ToolTip="Open Document(s)" SmallImage="Images/Document/open.png" TabIndex="2" />
                    <odc:RibbonButton Name="SaveButton" ToolTip="Save Document" SmallImage="Images/Document/save.png" TabIndex="3" />
                    <odc:RibbonButton Name="PrintButton" ToolTip="Print Document" SmallImage="Images/Document/print.png" TabIndex="4" />
                    <odc:RibbonMenuItem Name="ShowNewMenuItem" Header="New" ToolTip="Show New" IsCheckable="True" Image="Images/Document/new.png" />
                    <odc:RibbonMenuItem Name="ShowOpenMenuItem" Header="Open" ToolTip="Show Open" IsCheckable="True" Image="Images/Document/open.png" />
                    <odc:RibbonMenuItem Name="ShowSaveMenuItem" Header="Save" ToolTip="Show Save" IsCheckable="True" Image="Images/Document/save.png" />
                    <odc:RibbonMenuItem Name="ShowPrintMenuItem" Header="Print" ToolTip="Show Print" IsCheckable="True" Image="Images/Document/print.png" />
                    <Separator/>
                    <odc:RibbonMenuItem Name="MainMenuMenuItem" Header="Show Below Ribbon" IsCheckable="True" Image="Images/View/down.png" />
                    <Separator/>
                    <odc:RibbonMenuItem Name="RibbonbarMenuItem" Header="Minimize the Ribbonbar" IsCheckable="True" IsChecked="{Binding CanMinimize, ElementName=MainBar, Mode=TwoWay}" Image="Images/View/in.png"  />
                    <Separator/>
                    <odc:RibbonMenuItem Name="StatusbarMenuItem" Header="Statusbar" ToolTip="Show the Statusbar" IsChecked="True" />
                </odc:RibbonQAToolBar>
            </odc:RibbonBar.QAToolBar>
            <odc:RibbonTabItem Name="CommonTabItem" Title="Home">
                <odc:RibbonGroup Title="Edit">
                    <odc:RibbonButton Name="CommonUndoButton" Content="Undo" ToolTip="Undo (Ctrl + Z)" LargeImage="Images/Edit/undo.png" />
                    <odc:RibbonButton Name="CommonRedoButton" Content="Redo" ToolTip="Redo (Ctrl + Y)" LargeImage="Images/Edit/redo.png" />
                    <Separator/>
                    <odc:RibbonButton Name="CommonCutButton" Content="Cut" ToolTip="Cut (Ctrl + X)" odc:RibbonBar.MaxSize="Medium" SmallImage="Images/Edit/cut.png" />
                    <odc:RibbonButton Name="CommonCopyButton" Content="Copy" ToolTip="Copy (Ctrl + C)" odc:RibbonBar.MaxSize="Medium" SmallImage="Images/Edit/copy.png" />
                    <odc:RibbonButton Name="CommonPasteButton" Content="Paste" ToolTip="Paste (Ctrl + V)" SmallImage="Images/Edit/paste.png" odc:RibbonBar.MaxSize="Medium" />
                    <Separator/>
                </odc:RibbonGroup>
                <odc:RibbonGroup Title="Insert">
                    <odc:RibbonDropDownButton Name="CommonImageButton" Content="Image" ToolTip="Insert Image(s)" SmallImage="Images/Insert/image.png" odc:RibbonBar.MaxSize="Medium">
                        <odc:RibbonMenuItem Name="CommonImageFromFileButton" Header="From File" ToolTip="Insert Image(s) from File" Image="Images/Insert/folder_image.png"/>
                        <odc:RibbonMenuItem Name="CommonImageFromClipboardButton" Header="From Clipboard" ToolTip="Insert Image from Clipboard" Image="Images/Edit/paste.png"/>
                    </odc:RibbonDropDownButton>
                    <odc:RibbonButton Name="CommonDateButton" ToolTip="Insert Date" SmallImage="Images/Insert/date.png" Content="Date" odc:RibbonBar.MaxSize="Medium"/>
                    <odc:RibbonButton Name="CommonTimeButton" ToolTip="Insert Time" SmallImage="Images/Insert/time.png" Content="Time" odc:RibbonBar.MaxSize="Medium"/>
                    <Separator/>
                </odc:RibbonGroup>
                <odc:RibbonGroup Title="Format">
                    <DockPanel Width="302">
                        <Label Content="Font:" Margin="0,6,0,0"/>
                        <ComboBox Background="Transparent" x:Name="CommonfontComboFast" Margin="0,6,0,0" DockPanel.Dock="Top">
                            <ComboBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <VirtualizingStackPanel />
                                </ItemsPanelTemplate>
                            </ComboBox.ItemsPanel>
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding}" FontFamily="{Binding}" FontSize="15" Height="20"/>
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>
                        <Label Content="Size:" Margin="-36,8,0,0"/>
                        <ComboBox Background="Transparent" Name="CommonFontSizeComboBox" FontSize="{Binding}" Width="74" Height="24" Margin="-1,8,0,0" />
                        <Label Visibility="Collapsed" Content="Color:" Margin="38,8,0,0" HorizontalAlignment="Right" />
                        <ComboBox Visibility="Collapsed" Background="Transparent" Margin="0,8,0,0" Name="CommonFontColorComboBox" Width="106" Height="24" HorizontalAlignment="Right">

                        </ComboBox>
                    </DockPanel>
                    <Separator/>
                    <odc:RibbonButton Name="CommonBoldButton" Content="Bold" ToolTip="Toggle Bold" SmallImage="Images/Format/bold.png" odc:RibbonBar.MaxSize="Medium"/>
                    <odc:RibbonButton Name="CommonItalicButton" Content="Italic" ToolTip="Toggle Italic" SmallImage="Images/Format/italic.png"  odc:RibbonBar.MaxSize="Medium"/>
                    <odc:RibbonButton Name="CommonUnderlineButton" Content="Underline" ToolTip="Toggle Underline" SmallImage="Images/Format/underline.png" odc:RibbonBar.MaxSize="Medium"/>
                    <Separator/>
                    <odc:RibbonButton Name="CommonBulletListButton" Content="Bullet" ToolTip="Toggle Bullet List" SmallImage="Images/Format/bulletlist.png" odc:RibbonBar.MaxSize="Medium"/>
                    <odc:RibbonButton Name="CommonNumberListButton" Content="Number" ToolTip="Toggle Number List" SmallImage="Images/Format/numberlist.png" odc:RibbonBar.MaxSize="Medium"/>
                    <Separator/>
                    <odc:RibbonButton Name="CommonAlignLeftButton" Content="Align Left" ToolTip="Align Content to the Left" odc:RibbonBar.MaxSize="Medium" SmallImage="Images/Format/alignleft.png"/>
                    <odc:RibbonButton Name="CommonAlignCenterButton" Content="Align Center" ToolTip="Align Content to the Center" odc:RibbonBar.MaxSize="Medium" SmallImage="Images/Format/aligncenter.png"/>
                    <odc:RibbonButton Name="CommonAlignRightButton" Content="Align Right" ToolTip="Align Content to the Right" odc:RibbonBar.MaxSize="Medium" SmallImage="Images/Format/alignright.png"/>
                    <Separator/>
                </odc:RibbonGroup>
                <odc:RibbonGroup Title="Tools" >
                    <odc:RibbonButton Name="CommonTextToSpeechButton" Content="Text to Speech" LargeImage="Images/Tools/texttospeech.png" />
                </odc:RibbonGroup>
                <odc:RibbonGroup Title="Help">
                    <odc:RibbonButton Content="About" ToolTip="About Document.Editor" odc:RibbonBar.MaxSize="Large"  LargeImage="Dialogs/Help/about.ico" Name="CommonAboutButton"/>
                </odc:RibbonGroup>
            </odc:RibbonTabItem>
            <odc:RibbonTabItem Name="EditTab" Title="Edit">
                <odc:RibbonGroup Title="Edit">
                    <odc:RibbonButton Name="UndoButton" Content="Undo" ToolTip="Undo (Ctrl + Z)" LargeImage="Images/Edit/undo.png" />
                    <odc:RibbonButton Name="RedoButton" Content="Redo" ToolTip="Redo (Ctrl + Y)" LargeImage="Images/Edit/redo.png" />
                    <Separator/>
                    <odc:RibbonButton Name="CutButton" Content="Cut" ToolTip="Cut (Ctrl + X)" LargeImage="Images/Edit/cut.png" />
                    <odc:RibbonButton Name="CopyButton" Content="Copy" ToolTip="Copy (Ctrl + C)" LargeImage="Images/Edit/copy.png" />
                    <odc:RibbonButton Name="PasteButton" Content="Paste" ToolTip="Paste (Ctrl + V)" LargeImage="Images/Edit/paste.png" />
                    <Separator/>
                    <odc:RibbonButton Name="DeleteButton" Content="Delete" ToolTip="Delete (Del)" LargeImage="Images/Tab/close.png" />
                    <odc:RibbonButton Name="SelectAllButton" Content="Select All" ToolTip="Select All (Ctrl + A)" LargeImage="Images/Edit/selectall.png" />
                </odc:RibbonGroup>
            </odc:RibbonTabItem>
            <odc:RibbonTabItem Name="InsertTab" Title="Insert">
                <odc:RibbonGroup Title="Insert">
                    <odc:RibbonDropDownButton Name="ImageButton" Content="Image" ToolTip="Insert Image(s)" LargeImage="Images/Insert/image.png" >
                        <odc:RibbonMenuItem Name="ImageFromFileButton" Header="From File" ToolTip="Insert Image(s) from File" Image="Images/Insert/folder_image.png"/>
                        <odc:RibbonMenuItem Name="ImageFromClipboardButton" Header="From Clipboard" ToolTip="Insert Image from Clipboard" Image="Images/Edit/paste.png"/>
                    </odc:RibbonDropDownButton>
                    <odc:RibbonDropDownButton Name="LinkButton" Content="Link" ToolTip="Insert Link" LargeImage="Images/Insert/link.png" >
                        <TextBox Name="LinkComboBox" MinWidth="96" />
                    </odc:RibbonDropDownButton>
                    <Separator/>
                    <odc:RibbonButton Name="DateButton" ToolTip="Insert Date" LargeImage="Images/Insert/date.png" Content="Date" />
                    <odc:RibbonButton Name="TimeButton" ToolTip="Insert Time" LargeImage="Images/Insert/time.png" Content="Time" />
                </odc:RibbonGroup>
            </odc:RibbonTabItem>
            <odc:RibbonTabItem Name="FormatTab" Title="Format">
                <odc:RibbonGroup Title="Format">
                    <DockPanel Width="302">
                        <Label Content="Font:" Margin="0,6,0,0"/>
                        <ComboBox Background="Transparent" x:Name="fontComboFast" Margin="0,6,0,0" DockPanel.Dock="Top" ToolTip="Selected Font">
                            <ComboBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <VirtualizingStackPanel />
                                </ItemsPanelTemplate>
                            </ComboBox.ItemsPanel>
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding}" FontFamily="{Binding}" FontSize="15" Height="20"/>
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>
                        <Label Content="Size:" Margin="-36,8,0,0"/>
                        <ComboBox Background="Transparent" Name="FontSizeComboBox" ToolTip="Selected Font Size" FontSize="{Binding}" Width="74" Height="24" Margin="-1,8,0,0" />
                        <Label Visibility="Collapsed" Content="Color:" Margin="38,8,0,0" HorizontalAlignment="Right" />
                        <ComboBox Visibility="Collapsed" Background="Transparent" Margin="0,8,0,0" Name="FontColorComboBox" Width="106" Height="24" HorizontalAlignment="Right">

                        </ComboBox>
                    </DockPanel>
                    <Separator/>
                    <odc:RibbonButton Name="BoldButton" Content="Bold" ToolTip="Toggle Bold" LargeImage="Images/Format/bold.png"/>
                    <odc:RibbonButton Name="ItalicButton" Content="Italic" ToolTip="Toggle Italic" LargeImage="Images/Format/italic.png" />
                    <odc:RibbonButton Name="UnderlineButton" Content="Underline" ToolTip="Toggle Underline" LargeImage="Images/Format/underline.png" />
                    <Separator/>
                    <odc:RibbonButton Name="BulletListButton" Content="Bullet" ToolTip="Toggle Bullet List" LargeImage="Images/Format/bulletlist.png" />
                    <odc:RibbonButton Name="NumberListButton" Content="Number" ToolTip="Toggle Number List" LargeImage="Images/Format/numberlist.png" />
                    <Separator/>
                    <odc:RibbonButton Name="AlignLeftButton" Content="Align Left" ToolTip="Align Content to the Left" LargeImage="Images/Format/alignleft.png" />
                    <odc:RibbonButton Name="AlignCenterButton" Content="Align Center" ToolTip="Align Content to the Center" LargeImage="Images/Format/aligncenter.png" />
                    <odc:RibbonButton Name="AlignRightButton" Content="Align Right" ToolTip="Align Content to the Right" LargeImage="Images/Format/alignright.png" />
                    <Separator/>
                    <odc:RibbonButton Name="AlignJustifyButton" Content="Align Justify" ToolTip="Align Justify Content" LargeImage="Images/Format/alignjustify.png" />
                </odc:RibbonGroup>
            </odc:RibbonTabItem>
            <odc:RibbonTabItem Title="Tools">
                <odc:RibbonGroup Title="Tools" >
                    <odc:RibbonButton Name="TextToSpeechButton" Content="Text to Speech" LargeImage="Images/Tools/texttospeech.png" />
                    <Separator/>
                    <odc:RibbonButton Name="OptionsButton" Content="Options" LargeImage="Dialogs/Tools/options.ico" />
                </odc:RibbonGroup>
            </odc:RibbonTabItem>
            <odc:RibbonTabItem Name="HelpTabItem" Title="Help">
                <odc:RibbonGroup Title="Help">
                    <odc:RibbonButton Name="ReportButton" Content="Report Bug" ToolTip="Report a Bug to Semagsoft" LargeImage="Images/Help/report.png" />
                    <odc:RibbonButton Name="HelpUsButton" Content="Donate" ToolTip="Donate to Semagsoft" LargeImage="Images/Help/helpus.png" />
                    <odc:RibbonButton Name="HomepageButton" Content="Website" ToolTip="Visit Document.Editor Homepage" LargeImage="Images/Help/website.png" />
                    <Separator/>
                    <odc:RibbonButton Content="About" ToolTip="About Document.Editor"  LargeImage="Dialogs/Help/about.ico" Name="AboutButton"/>
                </odc:RibbonGroup>
            </odc:RibbonTabItem>
        </odc:RibbonBar>
        <Grid>
            <TabControl Name="TabCell" Margin="0,-2,0,24" />
            <DockPanel Name="StatusBar" Background="Transparent" VerticalAlignment="Bottom">
                <DockPanel.Effect>
                    <DropShadowEffect Color="White" ShadowDepth="0" /> 
                </DockPanel.Effect>
                <Label Name="NameButton">
                    <Label.Effect>
                        <DropShadowEffect Color="White" ShadowDepth="0" /> 
                    </Label.Effect>
                </Label>
                <Label Name="FormatButton" HorizontalAlignment="Right">
                    <Label.Effect>
                        <DropShadowEffect Color="White" ShadowDepth="0" />
                    </Label.Effect>
                </Label>
                <Label Name="SizeButton" HorizontalAlignment="Right">
                    <Label.Effect>
                        <DropShadowEffect Color="White" ShadowDepth="0" />
                    </Label.Effect>
                </Label>
                <Label Name="LineButton" HorizontalAlignment="Right">
                        <Label.Effect>
                            <DropShadowEffect Color="White" ShadowDepth="0" />
                        </Label.Effect>
                </Label>
            </DockPanel>
        </Grid>
    </DockPanel>
</odc:RibbonWindow>